const ES2024 = () => {
  
};
const res = await fetch('https://api.github.com/users/zhaoqr');
const ES2023 = () => { 
  const array = [6, 7, 4, 2, 1, 4, 6, 8, 0, 32, 1, 23];
  // const sort = array.sort((a, b) => a - b);
  // 相比于Sort方法，toSorted方法不会改变原数组
  const toSort = array.toSorted((a, b) => a - b);
  // console.log(sort);
  // console.log(toSort);


  // const splice = array.splice(0, 1, 100);
  const toSplice = array.toSpliced(0, 0, 100);
  // console.log(splice)
  // console.log(toSplice);

  // const reverse = array.reverse()
  const toReverse = array.toReversed();
  // console.log(reverse)
  // console.log(toReverse);


  const arrWith = array.with(0, 100);
  // console.log(arrWith)

  console.log(array);
  function featchData() { 
  }
}
export default {
  ES2024,
  ES2023
};
